package org.jiajie.coffeecodes.aop.cglib;

import org.jiajie.coffeecodes.aop.UserManager;
import org.jiajie.coffeecodes.aop.UserManagerImpl;

/**
 * @author jie
 */
public class Test2 {

    public static void main(String[] args) {
        UserManager um = new UserManagerImpl();
        TimeInterceptor time = new TimeInterceptor(um);
        um = ProxyUtil2.proxyOne(um.getClass(), time);
        um.addUser("22", "lao wang");
    }
}
